xen/arm: fix booting ACPI based system after static evtchn series
authorRahul Singh <rahul.singh@arm.com>
Fri, 23 Sep 2022 11:02:18 +0000 (12:02 +0100)
committerStefano Stabellini <stefano.stabellini@amd.com>
Tue, 4 Oct 2022 00:56:07 +0000 (17:56 -0700)
commit3161231abcb461314b205337fbd0530c7ead1696
treeb622201d5acb4df711ab5feb02cc459b543fc7f5
parentefc220bcbd282dc01db05aa673bd9ed2b42f6632
xen/arm: fix booting ACPI based system after static evtchn series

When ACPI is enabled and the system booted with ACPI, BUG() is observed
after merging the static event channel series. As there is no DT when
booted with ACPI there will be no chosen node because of that
"BUG_ON(chosen == NULL)" will be hit.

(XEN) Xen BUG at arch/arm/domain_build.c:3578

Move call to alloc_static_evtchn() under acpi_disabled check to fix the
issue.

Fixes: 1fe16b3ed78a (xen/arm: introduce xen-evtchn dom0less property)
Signed-off-by: Rahul Singh <rahul.singh@arm.com>
[stefano: minor spelling fix in commit message]
Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Reviewed-by: Ayan Kumar Halder <ayankuma@amd.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/arch/arm/setup.c